"""
URL configuration for WmsOrErp project.

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/4.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path

from django.conf import settings
from django.conf.urls.static import static
from django.urls import path
from app01  import views
urlpatterns = [
    # path('admin/', admin.site.urls),
    path('', views.home_page, name='home'),  # 新增首页
    path('upload/', views.upload_file, name='upload'),#新增收发存报表
    path('movelog/', views.movelog_file,name='movelog'),#新增移动日志
    path('display/', views.display_data, name='display'),#显示移动日志页面
    path('download/', views.download_data, name='download'),
    path('shipping/', views.shipping_management, name='shipping_management'),#新增运单管理
    path('display-shipping/', views.display_shipping, name='display_shipping'),#显示运单管理页面
    path('factory-shipping/', views.factory_shipping_management, name='factory_shipping_management'),#新增工厂运单管理
    path('factory-display-shipping/', views.factory_display_shipping, name='factory_display_shipping'),#显示工厂运单管理页面
    path('picking/', views.picking_log, name='picking_log'),#新增拣货日志
    path('display_picking/', views.display_picking, name='display_picking'),#显示拣货日志页面
    path('stock/', views.stock_management, name='stock_management'),#新增WMS库存页面
    path('display-stock/', views.display_stock, name='display_stock'),#显示WMS库存
    path('factory-picking/upload/', views.factory_picking_log, name='factory_picking_log'),#工厂统计有码无码导入execl
    path('factory-picking/display/', views.display_factory_picking, name='display_factory_picking'),#工厂统计有码无码导入功能
# 生产工单分析
    path('production_order_analysis/upload/', views.production_order_analysis_upload,
         name='production_order_analysis_upload'),
    path('production_order_analysis/display/', views.display_production_order_analysis,
         name='display_production_order_analysis'),
    #酒领分析
    path('analyze_aging/upload/', views.aging_analysis_upload, name='aging_analysis_upload'),
    path('analyze_aging/display/', views.aging_analysis_display, name='aging_analysis_display'),
    #二厂包材大屏
    path('factory_screen/upload/', views.factory_screen_upload, name='factory_screen_upload'),#上传ececl
    path('factory_screen/display/', views.factory_screen_display, name='factory_screen_display'),#显示二厂包材数据
]
if settings.DEBUG:
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
